package scala.enums

//枚举类
object EnumTest extends Enumeration {
  val RED = Value(1,"red")
  val YELLOW = Value(2, "yellow")
  val BLUE = Value(3, "blue")
}

//应用类
object TestApp extends App {
  println("xxxxx")
}

object TestEnum{
  def main(args: Array[String]): Unit = {
    println(EnumTest.RED)
  }
}


